package com.ly.heart.activiti.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ly.heart.activiti.pojo.node.Node;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title: ProcessModel
 * @description：流程模型
 */
@ApiModel(value = "流程模型", description = "流程模型")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProcessModel{

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty ("流程编码")
    private String code;

    @ApiModelProperty ("流程名称")
    private String name;

    @ApiModelProperty ("流程节点信息")
    private Node process;

    @ApiModelProperty ("版本信息")
    private Integer version;

    @ApiModelProperty ("排序")
    private Integer sort;

    @ApiModelProperty ("分组id")
//    @JsonSerialize(using = ToStringSerializer.class)
    private String groupId;

    @ApiModelProperty ("菜单ID")
    private String menuId;

    @ApiModelProperty ("备注")
    private String remark;

    @ApiModelProperty ("流程信息（回显使用）")
    private String modelData;

    @ApiModelProperty ("表单数据（回显使用）")
    private String formData;

}
